<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0;}
        a{text-decoration: none;}
        ul li{list-style: none;}
        .box{
            width: 490px;
            height: 170px;
            border: 1px solid #000;
            padding: 5px;
            margin: 100px auto;
        }
        .inner{
            width: 490px;
            height: 170px;
            position: relative;
            overflow: hidden;
        }
        .inner ul{
            position: absolute;
        }
        .inner li{
            float: left;
        }
        .span{
            position: absolute;
            left: 204px;
            bottom: 5px;
        }
        .span span{
            width: 20px;
            height: 20px;
            display: inline-block;
            background: #fff;
            text-align: center;
            line-height: 20px;
        }
        .span .current{
            background: yellow;
        }
    </style>
    <script src="./js/main.js" type="module"></script>
</head>
<body>
    <div class="box">
        <div class="inner">
            <ul>
                <li><a href="#"><img src="images/01.jpg" alt=""></a></li>
                <li><a href="#"><img src="images/02.jpg" alt=""></a></li>
                <li><a href="#"><img src="images/03.jpg" alt=""></a></li>
                <li><a href="#"><img src="images/04.jpg" alt=""></a></li>
                <li><a href="#"><img src="images/05.jpg" alt=""></a></li>
            </ul>
            <div class="span">
                <span class="current">1</span>
                <span>2</span>
                <span>3</span>
                <span>4</span>
                <span>5</span>
            </div>
        </div>
    </div>
</body>
</html>